package com.bbcare.mqservice.pojo;



public class ResultModel<T> {

    private boolean success;

    private String  message;

    private T data;

    public ResultModel(T data) {
        this.success = true;
        this.data = data;
    }

    public ResultModel(String errMes){
        this.success = false;
        this.message = errMes;
    }

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public T getData() {
        return data;
    }
}

